Skip to main content

Self-Managed IO River Security in Akamai using a Proxy Property

IO River normally provisions and manages the Akamai configuration required to route traffic through its security services for you.

If you prefer (or need) to configure this yourself directly in Akamai Property Manager using a dedicated proxy property architecture:

  • This guide walks through creating a Proxy Property and the IOR-Security-Proxy Akamai Include.
  • The result matches a proxy-based security architecture that separates traffic classification and security processing from origin routing.
  • You can then attach the Include to your content properties to perform security checks before traffic reaches the origin.

Overview of the Proxy Property Architecture​

Purpose​

The proxy property architecture provides a simple, two-stage traffic flow:

  • IOR-Security-Proxy Include: Contains the routing rules that direct traffic to IO River's security layer (via Akamai Functions) for inspection and decision-making. It then routes cleared traffic to the Proxy Property.
  • Proxy Property: A simple pass-through edge property that receives traffic after it has been cleared by IO River Security and routes it to your origin server.

This architecture allows you to:

  • Isolate security processing from your origin infrastructure.
  • Use a dedicated, lightweight proxy property for clean traffic routing.
  • Apply IO River Security rules consistently before origin access.
  • Easily manage traffic flow through two distinct stages.

How It Works​

Client Request
|
Akamai Edge (Proxy Property) + [IOR-Security-Proxy Include]
|
IO River Security (Akamai Functions) - Decision: Pass or Block
|
|-- PASS: Route to Origin (via Proxy Property)
|-- BLOCK: Return security error response
|
Akamai Edge (Proxy Property)
|
Origin

Traffic Flow:

  1. Client sends a request to a property that has the IOR-Security-Proxy Include attached.
  2. The IOR-Security-Proxy Include is applied to the request.
  3. The Include routes the request to IO River Security (implemented via Akamai Functions).
  4. IO River Security evaluates the request against configured rules and policies.
  5. IO River Security returns a decision:
    • PASS - The request is clean and authorized to proceed.
    • BLOCK - The request is blocked and a security error response is returned to the client.
  6. If PASS, the Include routes the request to the Proxy Property hostname.
  7. The Proxy Property receives the cleared request and routes it to your origin server.
  8. The origin processes the request and returns a response.

Setup Overview​

This guide has two parts:

  • Part A - Create the Proxy Property first (a simple pass-through property). Start here to obtain the proxy hostname.
  • Part B - Create the IOR-Security-Proxy Include with routing rules configured with the proxy hostname from Part A.

The order is important: you need the Proxy Property hostname before you can configure the Include.

Prerequisites​

Before you start, make sure you have:

  • Access to Akamai Control Center with permission to create Includes and Properties on the relevant contract/group.
  • Your backend origin server hostname.
note

Part B can be automated with a script instead of following the manual steps — see Automating Part B with a script.

Part A – Create the Proxy Property​

The Proxy Property is a simple pass-through property that routes cleared traffic to your backend origin. Create this first so you can obtain its hostname, which you'll need when configuring the Include in Part B.

Prerequisites for Part A​

Step 1 – Create the Proxy Property​

  1. In Akamai Control Center, go to Content Delivery → Properties.
  2. Click New Property.
    1. Enter a Name: ior-security-proxy (or a name specific to your use case, e.g., api-security-proxy).
    2. Select the Group and Product.
    3. Set the Rule Format to the latest available (or one that matches your existing properties).
    4. Click Create Property.

Step 2 – Define Property Variables​

  1. Go to Property Variables on the new Proxy Property.

  2. Add the following User Variables:

    • CLIENT_IP - Initial value: empty (extracted from request at runtime)
    • HOST_HEADER - Initial value: unset (extracted from request at runtime)
    • OVERRIDE_ORIGIN - Initial value: unset (extracted from request at runtime)

Step 3 – Configure the Proxy Rules​

The Proxy Property uses a predefined rule structure to handle client IP preservation and host header management.

The Proxy Property's default rule should contain the following configuration:

Variables (in Include Variables section):

  • PMUSER_CLIENT_IP - Extracted from request header x-ior-client-ip
  • PMUSER_HOST_HEADER - Extracted from request header x-ior-original-host (default: unset)
  • PMUSER_OVERRIDE_ORIGIN - Extracted from request header x-ior-origin-host-name (default: unset)

Behaviors (in order, in the Default Rule):

  1. Set Variable (Client IP)

    • Variable: PMUSER_CLIENT_IP
    • Create Value From: Extract
    • Get Data From: Request Header
    • Header Name: x-ior-client-ip
    • Operation: None
  2. Set Variable (Host Header)

    • Variable: PMUSER_HOST_HEADER
    • Create Value From: Extract
    • Get Data From: Request Header
    • Header Name: x-ior-original-host
    • Operation: None
  3. Set Variable (Override Origin)

    • Variable: PMUSER_OVERRIDE_ORIGIN
    • Create Value From: Extract
    • Get Data From: Request Header
    • Header Name: x-ior-origin-host-name
    • Operation: None
  4. Modify Outgoing Request Header (True Client IP)

    • Action: Add
    • Select header name: Other
    • Custom header name: True-Client-IP
    • Header value: {{user.PMUSER_CLIENT_IP}}
  5. Origin Server

    • Origin Type: Your own origin
    • Origin Server Hostname: {{user.PMUSER_OVERRIDE_ORIGIN}}
    • Forward Host Header: Custom
    • Custom Forward Host Header: {{user.PMUSER_HOST_HEADER}}
    • Cache Key Hostname: Request Host Header
    • Origin SSL Certificate Verification:
      • Verification Settings: Custom
      • Origin Certificate(s) to Honor: Standard Certificate Authorities, with Akamai Permissive selected
      • Valid CN Values: {{Origin Hostname}} and {{Forward Host Header}}
    • Use True Client IP Header: Yes
      • True Client IP Header: True-Client-IP
      • Trust Client Setting: Yes
    • Additional settings:
      • Compression: Enabled
      • HTTP/2: Enabled
      • TLS Version: Dynamic
      • Cache Behavior: Bypass Cache
    • Allow Methods: Enable PUT, DELETE, OPTIONS, PATCH, POST

Step 4 – Configure Hostname​

  1. In the Proxy Property, go to the Hostnames section.
  2. Add the hostname(s) that the Include will route traffic to:
    • Example: ior-security.example.com
    • You can use a staging hostname for testing first (e.g., ior-security-staging.example.com)
  3. Save the hostname configuration.
important

Write down or copy the proxy property hostname(s) you configured here. You will need this value for the PROXY_HOST variable in Part B, Step 2.

Step 5 – Activate the Proxy Property​

  1. Activate the Proxy Property version on Staging.
  2. Test against the staging hostname:
    • You cannot test directly yet (the Include hasn't been created to route traffic here), but you can verify the property is activated.
    • Check in Akamai Control Center that the property shows as "Activated" on Staging.
  3. Once Part B is complete and you have traffic flowing, you can then activate on Production.
note

The Proxy Property is now ready. Keep the hostname(s) accessible as you proceed to Part B to create the Include.

Part B – Create the IOR-Security-Proxy Include​

Now that the Proxy Property is created and has a domain, create the Include that will route traffic through IO River Security and direct cleared traffic back to the Proxy Property hostname.

Prerequisites for Part B​

Before creating the Include, you need:

  • Proxy Property Hostname - The hostname(s) you configured in Part A, Step 4.
  • IO River Security Endpoint - The hostname of IO River's security layer (Akamai Functions endpoint), provided by your IO River account team.
  • Origin Hostname - Your actual backend origin server hostname.

Step 1 – Create the Include​

  1. In Akamai Control Center, go to Content Delivery → Properties, and select the Includes tab.
  2. Click New Include.
    1. Select the product and click Create Include.
    2. Enter a Name: IOR-Security-Proxy.
    3. Set Include Type to Common settings.
    4. Select the Group and Rule Format (must match your Proxy Property's rule format).
    5. Click Next and then Save.
important

The Include's Rule Format must match the rule format of every Property it's attached to. If a Property later upgrades its rule format, update this Include's rule format to match before re-activating the Property, otherwise activation will fail or behaviors may not validate correctly.

Step 2 – Add the Include Variables​

Within the Include version you just created, go to the Include Variables section and add the following variables:

  • PROXY_HOST - Set the initial value to the proxy property hostname(s) you obtained in Part A, Step 4.
  • IOR_HOST_HEADER - Initial value: unset (extracted from request at runtime)

The initial values can be placeholders — they are overwritten at runtime by rules in the Include.

note

Akamai automatically namespaces Include-level user variables with a generated prefix unique to your account's Include (for example PMINC1419336_PROXY_HOST). Property Manager's Insert Variable picker will insert them with the correct reference.

Step 3 – Add the Include Routing Rules​

The Include contains rules that route traffic to IO River Security and preserve necessary headers.

Rule: CustomHostHeader

  1. Under the Include's default rule, click +Rules to add a new child rule.

  2. Name it CustomHostHeader.

  3. Add the following criteria (all must be satisfied):

    • Variable: PMUSER_HOST_HEADER

    • Match Operator: is not

    • Value: VIEWER

    • Variable: PMUSER_HOST_HEADER

    • Match Operator: is not

    • Value: ORIGIN

  4. Add the following behavior:

    • Modify Outgoing Request Header
    • Action: Add
    • Select header name: Other
    • Custom header name: x-ior-original-host
    • Header value: {{parent.PMUSER_HOST_HEADER}}
  5. Save the rule.

    Step 4 – Validate the Include​

Review the Include rules to ensure the routing is correctly configured:

  • Check that all criteria and behaviors are present

    • Verify variable references are properly resolved (especially IOR_HOST_HEADER)
    • Confirm that the rule routes traffic to the IO River Security endpoint
    • Verify all necessary headers are added (original host, client IP, origin hostname)

    The Include routes traffic to IO River Security for evaluation. IO River Security will then route the response back through Akamai to the Proxy Property hostname (using the PROXY_HOST variable you configured in Step 2), which will then route to your origin server.

    Step 5 – Activate the Include​

Activate the IOR-Security-Proxy Include on Staging, then later on Production.

The Include is now ready to be attached to your content properties.

Connecting the Include to Content Properties​

Once the Include is created and activated, attach it to any content properties that need IO River Security protection:

Step 1 – Reference the Include in Your Property​

  1. Open the content property that should use IO River Security.
  2. In the property's rule tree, add a child rule under the Default Rule called IOR-Security-Processing.
  3. Leave criteria empty (applies to all requests).
  4. Add a behavior Include, and select IOR-Security-Proxy.
  5. Save the property version.

Step 2 – Order Your Rules Correctly​

Make sure your property rules are ordered correctly:

  1. IOR-Security-Processing (Include reference) — applies the security Include
  2. Any other rules (caching, transformations, etc.)
  3. Origin routing rules — these are only reached if the Include passes the request through
important

The IOR-Security-Processing rule (Include reference) must come BEFORE any origin-routing rules so that security is applied first.

Step 3 – Activate the Property​

  1. Activate the property version on Staging.
  2. Test the complete flow:
    • Send a test request to the property
    • Verify it's processed by the Include and routed to IO River Security
    • Confirm that authorized requests reach the Proxy Property
    • Check that the Proxy Property routes it to your origin
    • Verify you receive a response from your origin
  3. Once verified, activate on Production.